package com.example.anju.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.anju.entity.Result;
import com.example.anju.entity.ViewInformationHouse;
import com.example.anju.service.ViewInformationHouseService;

@RestController
@RequestMapping("viewInformationHouse")
public class ViewInformationHouseController {
    @Autowired
    private ViewInformationHouseService viewInformationHouseService;
    
    //查询视图表
  	@PostMapping("/findInformationHouse")
    public Result findInformationHouseByUserId(@RequestBody ViewInformationHouse viewInformationHouse){
        return viewInformationHouseService.findInformationHouseByHouseId(viewInformationHouse);
    }
  	
}
